package com.yidu.hbats.dao;

import com.yidu.hbats.model.AtsPlanCurriculum;
import com.yidu.hbats.model.AtsPlanPhase;
import com.yidu.hbats.model.AtsPlanWeek;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AtsPlanPhaseMapper {
    AtsPlanPhase findById(Integer phaseId);



    /**
     * 根据指定方案创建人查
     * @param creater
     * @return
     */
    List<AtsPlanPhase> selectAllTwo(String creater);

    /**
     * 查询所有
     * @return
     */
    List<AtsPlanPhase> findCoach(AtsPlanPhase atsPlanPhase);
    List<AtsPlanPhase> findAthlete(AtsPlanPhase atsPlanPhase);
    List<AtsPlanPhase> selectAll(AtsPlanPhase atsPlanPhase);
    /**
     * 分页
     * @return
     */
    int countAll(AtsPlanPhase atsPlanPhase);
    int countCoach(AtsPlanPhase atsPlanPhase);
    int countAthlete(AtsPlanPhase atsPlanPhase);


    /**
     * 修改是否有效
     * @param atsPlanPhase
     * @return
     */
    int updateIsva(AtsPlanPhase atsPlanPhase);
    /**
     *
     * @mbg.generated 2019-10-29
     */
    int deleteByPrimaryKey(Integer phaseId);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int insert(AtsPlanPhase record);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int insertSelective(AtsPlanPhase record);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    AtsPlanPhase selectByPrimaryKey(Integer phaseId);
    AtsPlanPhase findMaxPid(int coachId);
    /**
     *
     * @mbg.generated 2019-10-29
     */
    int updateByPrimaryKeySelective(AtsPlanPhase record);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int updateByPrimaryKey(AtsPlanPhase record);
}